<include file="public/layout" />
<body style="background-color: #FFF; overflow: auto;">
<script type="text/javascript" src="__ROOT__/public/static/js/layer/laydate/laydate.js"></script>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>VPAY设置</h3>
                <h5>基础设置</h5>
            </div>
            <ul class="tab-base nc-row">
                <foreach name="group_list" item="v" key="k">
                    <li><a href="{:U('Plugins.Vpay/index',['inc_type'=> $k])}" <if condition="$k==$inc_type">class="current"</if>><span>{$v}</span></a></li>
                </foreach>
            </ul>
        </div>
    </div>
    <!-- 操作说明 -->
    <div class="explanation" id="explanation">
        <div class="title" id="checkZoom"><i class="fa fa-lightbulb-o"></i>
            <h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
            <span id="explanationZoom" title="收起提示"></span> </div>
        <ul>
            <li>设置vpay模式基础配置，请参考提示信息。</li>
        </ul>
    </div>
    <form method="post" enctype="multipart/form-data" id="handlepost" action="{:U('Plugins.Vpay/handle')}">
        <input type="hidden" name="form_submit" value="ok" />
        <div class="ncap-form-default">
            <div id="switch_on_off">
                <dl class="row"><dt class="tit"><label><b>基础设置</b></label></dt></dl>
                <dl class="row">
                    <dt class="tit">
                        <label for="">系统名称</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="name" class="input-txt"  value="{$config[name]}">
                        <p class="notic">设置系统名称，例:BTC,ETH..</p>
                    </dd>
                </dl>
                <dl class="row">
                    <dt class="tit">
                        <label for="">版本</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="appVersion" class="input-txt"  value="{$config[appVersion]}">
                        <p class="notic">填写系统版本号，前台显示当前版本</p>
                    </dd>
                </dl>
                <dl class="row">
                    <dt class="tit">
                        <label for="">当前转移比例</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="curTransBonusRatio" class="input-txt"  value="{$config[curTransBonusRatio]}">
                        <p class="notic">当前转移比例（转出用户获得积分）</p>
                    </dd>
                </dl>
                <dl class="row">
                    <dt class="tit">
                        <label for="">当前转移比例</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="curTransRatio" class="input-txt"  value="{$config[curTransRatio]}">
                        <p class="notic">当前转移比例（目标用户获得余额比例）</p>
                    </dd>
                </dl>
                <dl class="row">
                    <dt class="tit">
                        <label for="">余额转积分比例(倍数)</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="exchangeRatio" class="input-txt"  value="{$config[exchangeRatio]}">
                        <p class="notic">余额兑换积分放大比例（复投）</p>
                    </dd>
                </dl>
                <dl class="row">
                    <dt class="tit">
                        <label for="">当日积分释放比例</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="signRate" class="input-txt"  value="{$config[signRate]}">
                        <p class="notic">当日积分释放比例（建议：千分之二或千分之三）</p>
                    </dd>
                </dl>
                <dl class="row">
                    <dt class="tit">
                        <label for="">首次注册积分</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="regIntegral" class="input-txt"  value="{$config[regIntegral]}">
                        <p class="notic">会员注册赠送积分</p>
                    </dd>
                </dl>

                <dl class="row">
                    <dt class="tit">
                        <label for="">卖币交易手续费</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="poundage" class="input-txt" value="{$config[poundage]}">
                        <p class="notic">挂卖交易扣除卖家手续费比例设置（参考：填写0.2 = 相当于20%）</p>
                    </dd>
                </dl>
                <dl class="row"><dt class="tit"><label><b>释放比例</b></label></dt></dl>
                <dl class="row">
                    <dt class="tit">
                        <label>总释放层数</label>
                    </dt>
                    <dd class="opt">
                        <input id="txt_backflag" name="numbers" value="{$config.numbers}" class="input-txt" type="text">
                        <p class="notic">请填写有效总释放代数</p>
                    </dd>
                </dl>
                <dl class="row">
                    <dt class="tit">
                        <label for="">积分一代比例</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="oneExchangeRate" class="input-txt"  value="{$config[oneExchangeRate]}">
                        <p class="notic">用户兑换积分往上返一代比例设置（参考：填写0.1 = 相当于10%）</p>
                    </dd>
                </dl>
                <dl class="row">
                    <dt class="tit">
                        <label for="">积分二代比例</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="twoExchangeRate" class="input-txt"  value="{$config[twoExchangeRate]}">
                        <p class="notic">用户兑换积分往上返二代比例设置（参考：填写0.1 = 相当于10%）</p>
                    </dd>
                </dl>
                <dl class="row">
                    <dt class="tit">
                        <label for="">积分其他比例</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="otherExchangeRate" class="input-txt"  value="{$config[otherExchangeRate]}">
                        <p class="notic">用户兑换积分往上返其他代比例设置（参考：填写0.1 = 相当于10%）</p>
                    </dd>
                </dl>

                <dl class="row">
                    <dt class="tit">
                        <label for="">vip一代比例（团队奖）</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="extraRate1" class="input-txt" value="{$config[extraRate1]}">
                        <p class="notic">用户流通往上返vip一代比例设置（参考：填写0.1 = 相当于10%）</p>
                    </dd>
                </dl>

                <dl class="row">
                    <dt class="tit">
                        <label for="">vip二代比例（团队奖）</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="extraRate2" class="input-txt" value="{$config[extraRate2]}">
                        <p class="notic">用户流通往上返vip二代比例设置（参考：填写0.1 = 相当于10%）</p>
                    </dd>
                </dl>
                <dl class="row"><dt class="tit"><label><b>买入卖出比例设置</b></label></dt></dl>
                <dl class="row">
                    <dt class="tit">
                        <label for="">挂卖买方得余额比例</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="release" class="input-txt"  value="{$config[release]}">
                        <p class="notic">挂卖买方得余额比例</p>
                    </dd>
                </dl>
                <dl class="row">
                    <dt class="tit">
                        <label for="">挂卖卖方收益积分比例</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="integralSell" class="input-txt"  value="{$config[integralSell]}">
                        <p class="notic">挂卖卖方收益积分比例</p>
                    </dd>
                </dl>
                <dl class="row">
                    <dt class="tit">
                        <label for="">求购买家得余额比例</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="release2" class="input-txt"  value="{$config[release2]}">
                        <p class="notic">求购买家得余额比例</p>
                    </dd>
                </dl>
                <dl class="row">
                    <dt class="tit">
                        <label for="">求购卖方收益积分比例</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="integralSell2" class="input-txt"  value="{$config[integralSell2]}">
                        <p class="notic">求购卖方收益积分比例</p>
                    </dd>
                </dl>
            </div>
            <div class="bot">
                <input type="hidden" name="inc_type" value="{$inc_type}">
                <a href="JavaScript:void(0);" class="ncap-btn-big ncap-btn-green" onclick="adsubmit()">确认提交</a>
            </div>
        </div>
    </form>
</div>
<div id="goTop"> <a href="JavaScript:void(0);" id="btntop"><i class="fa fa-angle-up"></i></a><a href="JavaScript:void(0);" id="btnbottom"><i class="fa fa-angle-down"></i></a></div>
<script>
    $(document).ready(function(){
        $('#prize_begin_time').layDate();
    });
    $('#distribut_pattern').change(function(){
        if($(this).val() == 1)
            $('#distribut_order_rate').show();
        else
            $('#distribut_order_rate').hide();
    });

    function adsubmit(){

        $('#handlepost').submit();
    }

    function qr_back_call_back(fileurl_tmp)
    {
      $("#qr_back").val(fileurl_tmp);
      $("#qr_back_a").attr('href', fileurl_tmp);
      $("#qr_back_i").attr('onmouseover', "layer.tips('<img src="+fileurl_tmp+">',this,{tips: [1, '#fff']});");
    }
    function qr_big_back_call_back(fileurl_tmp)
    {
      $("#qr_big_back").val(fileurl_tmp);
      $("#qr_big_back_a").attr('href', fileurl_tmp);
      $("#qr_big_back_i").attr('onmouseover', "layer.tips('<img src="+fileurl_tmp+">',this,{tips: [1, '#fff']});");
    }
</script>
</body>
</html>